package demo3;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:张熳
 * Date:2025-08-25
 * Time:1:12
 */
//多态
//避免在构造方法中调用重写的方法

public class Base {
    public Base(){
        func();
    }

    public void func(){
        System.out.println("Base.func()");
    }
}
